<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>预约信息管理</title>
	<meta name="decorator" content="default"/>
	<link type="text/css" rel="stylesheet" href="${ctxStatic}/css/tdc/tdcReservationList.css" />
	<script type="text/javascript" src="${ctxStatic}/jquery/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="${ctxStatic}/jquery-validation/1.11.0/jquery.validate.min.js"></script>
	<script type="text/javascript" src="${ctxStatic}/layer/layer.js"></script>
	<script type="text/javascript" src="${ctxStatic}/js/tdc/tdcReservationList.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
		
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>

	
	<input id="inputCtx" type="hidden" value="${ctx}"/>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/reservation/tdcReservation/list">预约信息列表</a></li>
		
	</ul>
	<div id=""><label>今日预约总量：${todayCounts}&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp已到：${arrivedCounts }</label></div>
		
			
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>预约编号</th>
				<th>预约人姓名</th>
				<th>预约类型</th>
				<th>嫌犯姓名</th>
				<th>预约时间段开始</th>
				<th>预约时间段结束</th>
				<th>预约状态</th>
				<th>预约房间</th>
				<shiro:hasPermission name="reservation:tdcReservation:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="tdcReservation">
			<tr>
				<td>
					${tdcReservation.bespeakNumber}
				</a></td>
				<td>
					${tdcReservation.bespeakName}
				</td>
				<td>
					${tdcReservation.bespeakType}
				</td>
				<td>
					${tdcReservation.suspectName}
				</td>
				<td>
					<fmt:formatDate value="${tdcReservation.bespeakStart}" pattern="yyyy-MM-dd HH:mm"/>
				</td>
				<td>
					<fmt:formatDate value="${tdcReservation.bespeakEnd}" pattern="yyyy-MM-dd HH:mm"/>
				</td>
				<td>
					${tdcReservation.bespeakStatus}
				</td>
				<td>
					${tdcReservation.bespeakRoom}
				</td>
				<shiro:hasPermission name="reservation:tdcReservation:edit"><td>
    				<a href="${ctx}/reservation/tdcReservation/views?id=${tdcReservation.id}">查看</a>
				
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
	<form:form id="searchForm" modelAttribute="tdcReservation" action="${ctx}/reservation/tdcReservation/list" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		
		<ul class="ul-form">
			<li><label>预约编号：</label>
			 <input path="bespeakNumber" htmlEscape="false" maxlength="11" class="input-medium" id="searchBespeakNumber" placeholder="请输入预约编号"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary " type="button" value="查询"/></li>
			<li class="btns"><a href="${ctx}/reservation/tdcReservation/form"><input id="btnSubmit" class="btn btn-primary" type="button" value="添加预约"/></li></a></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<!--预约详情展示-->
		
	 <div class="div_05" id="showMsg01">
			<div class="div_0501">
				<!-- <label class="showlabel01">律师姓名:</label> -->
				<input id="searchBespeakNumberId" type="hidden" value=""/>
				<span class="div_050101" id="showDetail01">预约人姓名:<c:out value="小于"></c:out></span>				
				<span class="div_050102">预约人证件:</span>
				<img src="" id="showDetail02"/>
			</div>
			<div class="div_0502">
				<!-- <label class="showlabel01">嫌犯姓名:</label> -->
				<span class="div_050101"  id="showDetail03">嫌犯姓名:<c:out value="小于"></c:out></span>				
				<span class="div_050102">附件证明:</span>
				<img src=""  id="showDetail04"/>
			</div>
			<div class="div_0503">
				<label>嫌犯身份证:</label>
				<span  id="showDetail05"><c:out value="341282199107275588"></c:out></span>
			</div>
			<div class="div_0504">
				<label>预约时间:</label>
				<span id="showDetail06"><c:out value="2017年3月17日 上午9:00"></c:out></span>
			</div>
			<div class="div_0505">
				<input id="makeAnAppointment" class="btn btn-primary" type="button" value="确认预约"  />
			</div>
	<!-- 管理员选择房间号  -->
		</div>
	</div> 
</body>
</html>